package cn.wolfcode.web.modules;

import cn.wolfcode.web.modules.sys.entity.SysUser;

/**
 * @author tang
 * @date 2022/6/20 11:30
 * @desc
 */
public class BaseContext {
    private static ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();

    public static void setUserId(SysUser sysUser){
        threadLocal.set(sysUser);
    }

    public static SysUser getUserId(){
        return threadLocal.get();
    }
}
